\documentclass{article}
\usepackage{pgfplots}
\begin{document}
\fbox{%
\begin{tikzpicture}
\pgfplotsset{
	compat=1.11,
}
\begin{axis}[
	xlabel=x,ylabel=y,
xmin=-1,
xmax=1,
ymin=-1, ymax=1,
	samples=2, 
	cell picture=false,
]
\addplot coordinates {(-5,-5) (5,5)};
\end{axis}

\end{tikzpicture}%
}%
\end{document}

